package com.chalk.dao;

import com.chalk.model.Seller;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
 * @ProjectName: mall-parent
 * @Package: com.chalk.dao
 * @ClassName: SellerDao
 * @Author: haha  86130
 * @Description: 商家Dao
 * @Date: 2021/9/22 14:32
 * @Version: 1.0
 */
@Mapper
public interface SellerDao {

    /**
     * @Author 86130
     * @Description //todo 根据商家id查询
     * @methodName selectById
     * @param id:
     * @return Seller>
     * @Date  2021/9/22 14:45
     **/
    @Select("select * from t_seller where id=#{id}")
    Seller selectById(@Param("id")String id);

    /**
     * @Author 86130
     * @Description //todo 根据商家id修改可用状态
     * @methodName
     * @param seller:
     * @return null
     * @Date  2021/9/22 14:46
     **/
    @Update("update t_seller SET running_status = #{runningStatus} WHERE id =#{id}")
    Integer updateById(Seller seller);

}
